﻿@using ABP.TPLMS.Entitys
@using ABP.TPLMS.Web.Models.Common.Modals
@model ABP.TPLMS.Web.Models.Books.EditBookModalViewModel
@{
    Layout = null;
}
@Html.Partial("~/Views/Shared/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(L("EditBook")))

<div class="modal-body">
    <form name="bookEditForm" role="form" novalidate class="form-validation">
        <input type="hidden" name="Id" value="@Model.Book.Id" />
        <ul class="nav nav-tabs tab-nav-right" role="tablist">
            <li role="presentation" class="active"><a href="#create-book-details" data-toggle="tab">详情</a></li>
        </ul>
        <div class="tab-content">
            <div role="tabpanel" class="tab-pane animated fadeIn active" id="create-book-details">
                <div class="row clearfix" style="margin-top: 10px;">
                    <div class="col-sm-12">
                        <div class="form-group form-float">
                            <div class="form-line">
                                <input asp-for="Book.Name" class="form-control" type="text" name="Name" required>
                                <label class="form-label">名称</label>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row clearfix">
                    <div class="col-sm-12">
                        <div class="form-group form-float">
                            <select asp-for="Book.Type" name="Type" asp-items="@Html.GetEnumSelectList(typeof(BookType))" class="form-control">
                                <option value="">请选择类型</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="row clearfix">
                    <div class="col-sm-12">
                        <div class="form-group form-float">
                            <div class="form-line">
                                <input asp-for="Book.Price" type="text" name="Price" class="form-control">
                                <label class="form-label">价格</label>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row clearfix">
                    <div class="col-sm-12">
                        <div class="form-group form-float">
                            <div class="form-line">
                                <input asp-for="Book.PublishDate" type="text" name="PublishDate" class="form-control">
                                <label class="form-label">发布日期</label>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
            <div role="tabpanel" class="tab-pane animated fadeIn" id="create-book-roles">
                <div class="row">
                    <div class="col-sm-12 ">

                    </div>
                </div>
            </div>
        </div>

    </form>
</div>


@Html.Partial("~/Views/Shared/Modals/_ModalFooterWithSaveAndCancel.cshtml")

<script src="~/view-resources/Views/Books/_EditBookModal.js" asp-append-version="true"></script>
